package com.mvc.web.main.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.web.main.dao.MainDao;
import com.mvc.web.main.service.MainService;
import com.mvc.web.main.vo.KeyValueVo;

@Service
public class MainServiceImpl implements MainService{

	@Autowired
	private MainDao mainDao;
	
	
	@Override
	public List<KeyValueVo> getProvinceList() {
		return mainDao.getProvinceList();
	}

	@Override
	public List<KeyValueVo> getCityList(Integer provinceId) {
		return mainDao.getCityList(provinceId);
	}

}
